import {getYearTotal} from "../../apis/gyt"
Page({
  data: {
  
    multiArray: [['2024', '2025'], ['1', '2', '3', '4', '5']],

    multiIndex: [0, 0],

    result:[]
  },
  async onLoad(){
      var res=await getYearTotal();
      this.setData({result:res});
      
  },
  bindMultiPickerChange: function (e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      multiIndex: e.detail.value
    })
  },
  bindMultiPickerColumnChange: function (e) {
    console.log('修改的列为', e.detail.column, '，值为', e.detail.value);
    var data = {
      multiArray: this.data.multiArray,
      multiIndex: this.data.multiIndex
    };
    data.multiIndex[e.detail.column]=e.detail.value;
    this.setData(data);
  },


})